import { _decorator, AudioClip, AudioSource, Component, find, Node } from 'cc';
import { ResourceManager } from '../PlayableFramework/Tools/Manager/ResourceManager';
import { Scene } from './Scene';
const { ccclass, property } = _decorator;


@ccclass('test')
export class test extends Component {

    public scene:Scene;
    start() {
        this.scene = ResourceManager.getPoolNode("Main").getComponent(Scene);
        this.clickAudio = ResourceManager.getPoolNode("ccz").getComponent(AudioSource);
    }

    
    @property(AudioSource)
    public clickAudio:AudioSource;

    public fix(){
        this.clickAudio.playOneShot(this.scene.audioClips[4],1);

    }
}


